keyfile-utils: Quiet a clang-analyzer warning
authorColin Walters <walters@verbum.org>
Wed, 30 Aug 2023 13:19:42 +0000 (09:19 -0400)
committerColin Walters <walters@verbum.org>
Wed, 30 Aug 2023 13:19:42 +0000 (09:19 -0400)
commit5e1b6983291d08e7ef2e803ea105704038d22dab
tree83154b3badfe8ecdf072805b005413e4e3f2290d
parent03a198888fec714c30a7d01435086044e1574b5b
keyfile-utils: Quiet a clang-analyzer warning

It complains that we could leak memory if the return value
pointer isn't set.  That's actually a nonsensical case, there's
no reason to call this and ignore the return value.

So change things to require it be set, and also change the
`g_return_val_if_fail` to be hard assertions per our new policy.
src/libotutil/ot-keyfile-utils.c